#region Disclaimer by Teo Lachev
/*============================================================================
  The CustomDataExtension sample uses code from the Microsoft File Share Data 
  Processing Extension Sample (http://msdn2.microsoft.com/en-us/library/ms160918.aspx). 
  The orginal code base has been modified whenever needed to re-purpose the 
  extension to support ADO.NET datasets. Most code changes are implemented in the 
  DsDataReader class.
===========================================================================*/
#endregion

using System;
using Microsoft.ReportingServices.DataProcessing;

namespace Prologika.RS.Extensibility.CustomDataExtension
{
    /// <summary>
    /// Represents a command parameter
    /// </summary>
   public class DsDataParameter : IDataParameter
   {
      string            m_paramName;
      object            m_value;

      public DsDataParameter()
      {
      }

      public DsDataParameter(string parameterName, object value)
      {
         m_paramName = parameterName;
         this.Value = value;   
         // Setting the value also infers the type
      }
      
      public String ParameterName 
      {
         get { return m_paramName; }
         set { m_paramName = value; }
      }

      public object Value 
      {
         get
         {
            return m_value;
         }
         set
         {
            m_value    = value;
         }
      }
   }
}

